home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 3
/
Amoszine 3.adf
/
TIPS_SOURCE
/
example5.AMOS
/
example5.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
499b
|
21 lines
'--------------------------------------
'*** Example 5 ***
'
'Don't use multiple if's
'
'For example.
'
If A=1 Then Proc A1
If A=2 Then Proc A2
If A=3 Then Proc A3
If A=4 Then Proc A4
'
'Can be replaced with.
'
On A Proc A1,A2,A3,A4
'
'Although this method can't pass varables, it is much faster than using
'multiple if's with more conditions resulting in more of a gain in speed.
'
' This example is not complete.
'------------------------------------------------------------------------